package FirstExampe.last;

public class Rental {
	private Movie _movie;
	private int _daysRented;

	public Rental(Movie movie, int _daysRented) {
		super();
		this._movie = movie;
		this._daysRented = _daysRented;
	}

	public int frequent() {
		return _movie.frequent(_daysRented);
	}

	public double amount() {
		return _movie.amount(_daysRented);
	}

	public Movie getMovie() {
		return _movie;
	}

	public void setMovie(Movie _movie) {
		this._movie = _movie;
	}

	public int getDaysRented() {
		return _daysRented;
	}

	public void setDaysRented(int _daysRented) {
		this._daysRented = _daysRented;
	}
}
